<template>
	<view class="classLayout pageBg">		
		<!-- 导航栏 -->
		<custom-nav-bar title="分类" :show-search="false"></custom-nav-bar>
		<view class="classify">
			<theme-item  v-for="item in classList" :key="item._id" :item="item"></theme-item>
		</view>
	</view>
</template>

<script setup>
	import { ref } from 'vue';
	import {apiGetClassify} from "../../api/apis.js";
	
	const classList = ref([]);
	const getClassList = async () => {
		let res = await apiGetClassify({
			pageSize: 20
		});
		classList.value = res.data	
	}
	getClassList();
</script>

<style lang="scss" scoped>
	.classLayout {
		padding: 30rpx;
		.classify {
			display: grid;
			gap: 15rpx;
			grid-template-columns: repeat(3,1fr);
		}
	}
</style>
